<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class LIST_Form_validation</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class LIST_Form_validation</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This extended CI_Form_validation library provides some new and better validation functions.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Andrej Jursa</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_libraries---LIST_Form_validation.php.html">/libraries/LIST_Form_validation.php</a> (line <span class="field"><a href="../__filesource/fsource_LIST_Libraries__librariesLIST_Form_validation.php.html#a8">8</a></span>)
		</p>
		
				
		<pre>CI_Form_validation
   |
   --LIST_Form_validation</pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																				
												<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#exists_in_table" title="details" class="method-name">exists_in_table</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#floatpoint" title="details" class="method-name">floatpoint</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#greater_than_equal" title="details" class="method-name">greater_than_equal</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">double</span>&nbsp;<span class="var-name">$min</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#less_than_equal" title="details" class="method-name">less_than_equal</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">double</span>&nbsp;<span class="var-name">$max</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#matches" title="details" class="method-name">matches</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#max_length_optional" title="details" class="method-name">max_length_optional</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$length</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#min_length_optional" title="details" class="method-name">min_length_optional</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$length</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#required_no_html" title="details" class="method-name">required_no_html</a>
											(<span class="var-type">string|array</span>&nbsp;<span class="var-name">$str</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodexists_in_table" id="exists_in_table"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">exists_in_table</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_Libraries__librariesLIST_Form_validation.php.html#a81">81</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Tests if string value exists in database table.</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, if condition is satisfied, FALSE othewise.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			exists_in_table
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$table</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: input string to evaluate.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$table</span><span class="var-description">: comma separated definition of table (first part), column (second part), least occurrence (third part) and most often occurrence (fourth part).</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfloatpoint" id="floatpoint"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">floatpoint</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_Libraries__librariesLIST_Form_validation.php.html#a100">100</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Evaluate text if contains numeric value with floating point.</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, if string is floating point value, FALSE otherwise.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			floatpoint
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: string to evaluate.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgreater_than_equal" id="greater_than_equal"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">greater_than_equal</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_Libraries__librariesLIST_Form_validation.php.html#a114">114</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Test if string is number and is greater or equal to given minimum.</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE on success.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			greater_than_equal
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">double</span>&nbsp;<span class="var-name">$min</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: string to evaluate.</span>			</li>
					<li>
				<span class="var-type">double</span>
				<span class="var-name">$min</span><span class="var-description">: minimum value.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodless_than_equal" id="less_than_equal"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">less_than_equal</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_Libraries__librariesLIST_Form_validation.php.html#a127">127</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Test if string is number and is less or equal to given maximum.</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE on success.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			less_than_equal
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">double</span>&nbsp;<span class="var-name">$max</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: string to evaluate.</span>			</li>
					<li>
				<span class="var-type">double</span>
				<span class="var-name">$max</span><span class="var-description">: maximum value.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmatches" id="matches"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">matches</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_Libraries__librariesLIST_Form_validation.php.html#a30">30</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Better version of standard matches method, this one will check if field is array and find appropriate value of this field.</p>
	<ul class="tags">
				<li><span class="field">return:</span> validation result.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			matches
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: current value of form field.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span><span class="var-description">: form field name, can be array.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmax_length_optional" id="max_length_optional"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">max_length_optional</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_Libraries__librariesLIST_Form_validation.php.html#a69">69</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Optional version of max_length().</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, if conditions are satisfied, FALSE otherwise.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			max_length_optional
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$length</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: string to evauluate, it must be empty or it must not have more than $length characters.</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$length</span><span class="var-description">: maximum number of characters in string $str.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmin_length_optional" id="min_length_optional"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">min_length_optional</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_Libraries__librariesLIST_Form_validation.php.html#a57">57</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Optional version of min_length().</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE, if conditions are satisfied, FALSE otherwise.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			min_length_optional
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$length</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: string to evauluate, it must be empty or it must have at least $length characters.</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$length</span><span class="var-description">: minimum number of characters in string $str.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodrequired_no_html" id="required_no_html"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">required_no_html</span> (line <span class="line-number"><a href="../__filesource/fsource_LIST_Libraries__librariesLIST_Form_validation.php.html#a15">15</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Validates entry string or array if it is empty (without html tags).</p>
	<ul class="tags">
				<li><span class="field">return:</span> validation result.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			required_no_html
		</span>
					(<span class="var-type">string|array</span>&nbsp;<span class="var-name">$str</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string|array</span>
				<span class="var-name">$str</span><span class="var-description">: string to evaluate.</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 13 Sep 2013 12:32:38 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>